GGplot

Column

GGplot

Column

Notes

This is a non-interactive map built with basic ggplot2 functions.

I am using a shapefile-based set of multipolygons for the town outlines. These are probably higher resolution than needed. It might be possible to reduce size (and load time) of the dashboard if I switched to the lower resolution geojson-based polygons that I’m using with leaflet.

GGplotly

Column

GGplotly

Column

Notes

This is a plotly interactive map created by submitting the previous ggplot2 map to the plotly::ggplotly() function.

I don’t care for how the tooltips only deploy when the mouse approaches the center of a town/polygon. It should pop up when the mouse is over any part of a town.

Plot_ly

Column

Plot_ly

Column

Notes

Interactive choropleth via plotly::plot_ly().

I’m using a geojson-based set of polygons for town outlines in this map. Plot_ly() gets the aspect ratio wrong if using the shapefile-based set of multipolygons that I used with ggplot() and ggplotly() maps. I’m not sure why.

Leaflet

Column

Leaflet

10 Day Average Covid-19 Test Positivity in Connecticut Towns for period ending April 08, 2022

Column

Notes

Interactive choropleth via leaflet::leaflet().

Previous plots in this series used multipolygon shapes for towns taken from conventional shape files. I couldn’t get that to work with leaflet and so switched to simple polygons. These were read from geojson files, but I think the crucial difference is multipolygon vs. somple polygons.

I don’t know why the colorscale in the legend is inverted. Needs to be fixed.

Leaflet maps don’t provide a “title” feature, as such. Here, I’ve just added the title text above the map. Could use some basic formatting.

About

Column

About the Maps

Covid data for these figures was compiled by CT Dept. of Public Health through Apr 08, 2022 and accessed through https://data.ct.gov/stories/s/COVID-19-data/wa3g-tfvc/#data-library.

Figures were created by David Braze () using R statistical software and released under the Creative Commons v4.0 CC-by license.

Column

About the Author

David Braze is a researcher and consultant with a background in linguistics and reading research. He has more than 25 years experience investigating the cognitive foundations of language, literacy, and educational achievement, including 17 years as a Senior Research Scientist at Haskins Laboratories. His research at Haskins, funded by the National Institutes of Health, emphasized the neurobiology of language and reading and applications to education. Dr. Braze consults widely for business, government, and non-profit sectors.

  email:
  website: davebraze.org

Column

About the Software

All data summaries in this dashboard were produced with the R statistical environment, version 4.1.0. The dashboard itself was made using an Rmarkdown workflow. The following table lists the non-base R packages used in building the dashboard. To see a full citation for a specific package, assuming you have both R and the particular package installed, call (e.g.) citation("dplyr") from the R prompt.

R packages used in this dashboard.
package version date
dplyr 1.0.7 2021-06-18
FDBpub 0.0.1 2022-01-29
FDButils 0.0.10 2022-01-29
flexdashboard 0.5.2 2020-06-24
forcats 0.5.1 2021-01-27
fs 1.5.2 2021-12-08
ggplot2 3.3.5 2021-06-25
ggpmisc 0.4.5 2021-12-11
ggpp 0.4.3 2021-12-17
here 1.0.1 2020-12-13
htmltools 0.5.2 2021-08-25
htmlwidgets 1.5.4 2021-09-08
httr 1.4.2 2020-07-20
leaflet 2.0.4.1 2021-01-07
lubridate 1.8.0 2021-10-07
plotly 4.10.0 2021-10-09
purrr 0.3.4 2020-04-17
RCurl 1.98.1.5 2021-09-17
readr 2.1.1 2021-11-30
RSocrata 1.7.11.2 2021-09-14
sf 1.0.5 2021-12-17
stringr 1.4.0 2019-02-10
wordstonumbers 1.0.1 2020-11-13
XML 3.99.0.8 2021-09-17